package com.lvmama.java.rhino.spark.tables;

import java.io.Serializable;

public class UserAccessPath implements Serializable {
	private static final long serialVersionUID = -7932433993150350247L;
	/** 线程名 */
	private String threadName;
	/** 应用名称 */
	private String appName;
	/** 客户端会话ID */
	private String lvsessionid;
	/** 用户ID */
	private String userId;
	/** 接口API */
	private String method;
	/** 接口版本 */
	private String version;
	/** 设备号 */
	private String udid;
	/** 操作系统版本号 */
	private String osVersion;
	/** 客户端版本号 */
	private String lvversion;
	/** 纬度 */
	private String latitude;
	/** 经度 */
	private String longitude;
	/** 设备类型 */
	private String firstChannel;
	/** 下载渠道 */
	private String secondChannel;
	/** 访问IP */
	private String ip;
	/** 接口请求时间 */
	private long requestTime;
	/** 接口应答时间 */	
	private long responseTime;
	public String getThreadName() {
		return threadName;
	}
	public void setThreadName(String threadName) {
		this.threadName = threadName;
	}
	public String getLvsessionid() {
		return lvsessionid;
	}
	public void setLvsessionid(String lvsessionid) {
		this.lvsessionid = lvsessionid;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getUdid() {
		return udid;
	}
	public void setUdid(String udid) {
		this.udid = udid;
	}
	public String getOsVersion() {
		return osVersion;
	}
	public void setOsVersion(String osVersion) {
		this.osVersion = osVersion;
	}
	public String getLvversion() {
		return lvversion;
	}
	public void setLvversion(String lvversion) {
		this.lvversion = lvversion;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getFirstChannel() {
		return firstChannel;
	}
	public void setFirstChannel(String firstChannel) {
		this.firstChannel = firstChannel;
	}
	public String getSecondChannel() {
		return secondChannel;
	}
	public void setSecondChannel(String secondChannel) {
		this.secondChannel = secondChannel;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public long getRequestTime() {
		return requestTime;
	}
	public void setRequestTime(long requestTime) {
		this.requestTime = requestTime;
	}
	public long getResponseTime() {
		return responseTime;
	}
	public void setResponseTime(long responseTime) {
		this.responseTime = responseTime;
	}
	public String toLogStr(String seperator) {
		StringBuilder builder = new StringBuilder();
        builder.append(threadName).append(seperator);
        builder.append(lvsessionid).append(seperator);
        builder.append(userId).append(seperator);
        builder.append(method).append(seperator);
        builder.append(version).append(seperator);
        builder.append(udid).append(seperator);
        builder.append(osVersion).append(seperator);
        builder.append(lvversion).append(seperator);
        builder.append(latitude).append(seperator);
        builder.append(longitude).append(seperator);
        builder.append(firstChannel).append(seperator);
        builder.append(secondChannel).append(seperator);
        builder.append(ip).append(seperator);
        builder.append(requestTime).append(seperator);
        builder.append(responseTime).append(seperator);
        return builder.toString();
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
}

